unit F_Errors;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls, FileCtrl;

type
  TFormErrors = class(TForm)
    Panel1: TPanel;
    Button_Ok: TBitBtn;
    FileList: TFileListBox;
    Memo: TMemo;
    BitBtn1: TBitBtn;
    procedure FormShow(Sender: TObject);
    procedure FileListChange(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormErrors: TFormErrors;

implementation

uses F_main, u_api;

{$R *.dfm}

procedure TFormErrors.BitBtn1Click(Sender: TObject);
begin
  KillDir(PathErrors,['err']);
  FileList.Update;
  Memo.Clear;
end;

procedure TFormErrors.FileListChange(Sender: TObject);
begin
  if FileExists(FileList.FileName) then
    Memo.Lines.LoadFromFile(FileList.FileName);
end;

procedure TFormErrors.FormShow(Sender: TObject);
begin
  FileList.Directory:=PathErrors;
end;

end.
